package com.cinematicketscaning.app.widget

import android.app.Activity
import android.content.Context
import android.content.Intent
import android.os.CountDownTimer
import com.cinematicketscaning.app.R
import com.cinematicketscaning.app.controller.ScreenProtectorActivity

class CountTimer(var context: Activity, millisInFuture: Long, countDownInterval: Long) :
    CountDownTimer(millisInFuture, countDownInterval) {
    override fun onFinish() {
        context.startActivity(Intent(context, ScreenProtectorActivity::class.java))
        context.overridePendingTransition(R.anim.activity_open, R.anim.activity_close)
    }

    override fun onTick(millisUntilFinished: Long) {
    }
}